<%@ page language="java" 
         contentType="text/html; charset=windows-1256"
         pageEncoding="windows-1256"
         import="LoginUtil.User"
   %>
 
 	<%  User currentUser = (User) (session.getAttribute("currentSessionUser"));	%>
 
   <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
   "http://www.w3.org/TR/html4/loose.dtd">

   <html>

      <head>
         <meta http-equiv="Content-Type" 
            content="text/html; charset=windows-1256">
         <title>   Treatment Record Modified Successfully   </title>
         <link rel="stylesheet" type="text/css" href="style.css" />
      </head>
	
      <body>

         <center>
            
            <br>
            TREATMENT RECORD CREATED SUCCESSFULLY!
            
            
            <br><br><br>
            <%
            	if(currentUser.getUserType() == User.UserType.Admin){
            		out.println("<a href ='adminMain.jsp'>Return</a>");
            	}
            	else if(currentUser.getUserType() == User.UserType.Doctor){
            		out.println("<a href ='doctorMain.jsp'>Return</a>");
            	}
            	else if(currentUser.getUserType() == User.UserType.Nurse){
            		out.println("<a href ='nurseMain.jsp'>Return</a>");
            	}
            	else{
            		out.println("<a href ='login.jsp'>Return</a>");
            	}
            
            %>
            
            
         </center>

      </body>
	
   </html>